﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Schedule.UI.ViewModel;
using Schedule.UI.ScheduleService;

namespace ScheduleSilverlight
{
    public partial class MainPage : UserControl
    {
        //private ScheduleViewModel ViewModel = new ScheduleViewModel();
        public MainPage()
        {
            InitializeComponent();
            //this.Loaded += (s, e) => { this.DataContext = ViewModel; };
        }
        private void DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            //if (this.ViewModel.SelectedCompetitor != null)
            //    this.ViewModel.CurrentCompetitor = this.ViewModel.SelectedCompetitor;
            //else
            //if (this.ViewModel.CurrentCompetitor == null)
            //    this.ViewModel.CurrentCompetitor = new Competitor();
        }
    }
}
